﻿


//================= 参数设置 ==========================
var CTI = "AvayaCCE"; 
var Returnsuccess = "0"; 
var MyReturnsuccess = 0; 



var intervalid;
var RcvMsgTime		= 500;		   //接收消息时间间隔（毫秒）
var sCTIIsapi="http://192.168.38.216/inoutapi/CTIIsapi.dll";
var sIsapi="http://192.168.38.216/inoutapi/testISAPI.dll";
var CallInboundMaxLength = 4;

var szHost = "192.168.201.23";
var nPort = 6853;
var nTimeOut = 3000;
var nWaitTime = -1;
var RecordIntervalTime = 5000;



var LogFolderPath = 'd:\\DLL\\';
var LogOn=true;
var ErrLogOn=true;
var FolderName = 'Log';
var FileName = 'CICLOG';
//var FileName = FileName;


var CTILink = 1; 
var Mode = 1; 
var AgentData = "4001"; 
var AgentGroup = "4000";
var WorkMode = 5; 
var LogFlg=false;
var ErrLogFlg=false;


var CIC_UserStatus = new Object(); 
CIC_UserStatus["ctmpV_None"] = 0; 	
CIC_UserStatus["ctmpV_ASAI"] = 1; 	


var CCE4AgentState = new Object(); 
CCE4AgentState["loggedOn"] = "0";
CCE4AgentState["loggedOff"] = "1";
CCE4AgentState["notReady"] = "2";
CCE4AgentState["ready"] = "3";
CCE4AgentState["workingAfterCall"] = "4";


var CCE4WorkMode = new Object(); 
CCE4WorkMode["WM_AUX_WORK"] = "1";
CCE4WorkMode["WM_AFTCAL_WK"] = "2";
CCE4WorkMode["WM_AUTO_IN"] = "3";
CCE4WorkMode["WM_MANUAL_IN"] = "4";


var NetSoftPhoneSet = new Object(); 
NetSoftPhoneSet["TServerLinkName"] = "AVAYA#AESSH#CSTA#AESSH";
NetSoftPhoneSet["TServerUserName"] = "ctish";
NetSoftPhoneSet["TServerUserPassword"] = "Ctish@1234";
NetSoftPhoneSet["LicenseServerPort"] = "29096";
NetSoftPhoneSet["CTIType"] = "AvayaCCE";
NetSoftPhoneSet["SoftphoneType"] = "Function";
NetSoftPhoneSet["CTILogFilePath"] = 'd:\\DLL\\';
NetSoftPhoneSet["ErrorLogFlg"] = "True";
NetSoftPhoneSet["LogFlg"] = "True";
NetSoftPhoneSet["LogFileName"] = "GuoHuaAvayaCCE4NetSoftPhoneServerLog";
NetSoftPhoneSet["Server"] = "192.168.201.13";
NetSoftPhoneSet["GradeVDN"] = "2000";

NetSoftPhoneSet["AgentLoginAgentState"]=CCE4AgentState.loggedOn;
NetSoftPhoneSet["AgentLoginWorkMode"]=CCE4WorkMode.WM_AUX_WORK;

NetSoftPhoneSet["ActiveXLogFlg"] = true;
NetSoftPhoneSet["ActiveXErrorLogFlg"] = true;
NetSoftPhoneSet["ActiveXLogPath"] = "d:\\DLL\\";









